<?php
/**
 * Description of Index Controller
 *
 * @author Vu
 */

class Admin_Cms_IndexController extends My_Controller_Action
{
    public function init()
    {
        parent::init();
		
		$auth = Zend_Auth::getInstance();
        
        if(!$auth->hasIdentity())
        { 
            $this->_redirect("user/account/login");
        }
        
        if ($auth->getIdentity()->group_id != 2)
        {
			//to do
		} else {
            die("Access denied");
        }
    }

    public function indexAction()
    {
    	$this->view->rightAdminModules('right'); 
    }
}
